﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LanMuEdit.aspx.cs" Inherits="FxhjpgWeb.WebSite.WebAdmin.LanMuEdit" %>
<%@ Import Namespace="System.Linq" %>
<%@ Import Namespace="System.Data" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>文章管理</title>
    <link href="/css/admin/admin.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript" src="/js/jquery.js"></script>
    <script type="text/javascript" src="/js/admin/admin.js"></script>
    <!--kindEditor配置Begin-->
    <link rel="stylesheet" href="/js/kindeditor/themes/default/default.css" />
    <link rel="stylesheet" href="/js/kindeditor/plugins/code/prettify.css" />
    <script type="text/javascript" charset="utf-8" src="/js/kindeditor/kindeditor-min.js?v=4.1.7"></script>
    <script type="text/javascript" charset="utf-8" src="/js/kindeditor/lang/zh_CN.js?v=4.1.7"></script>
    <script type="text/javascript" charset="utf-8" src="/js/kindeditor/plugins/code/prettify.js?v=4.1.7"></script>
    <script type="text/javascript">
        //此编辑器初始化参数请参考http://www.kindsoft.net/docs/option.html
        var editor, editor_en;
        KindEditor.ready(function (K) {
            editor = K.create('#content', {
                cssPath: '/js/kindeditor/plugins/code/prettify.css',
                filterMode: false,
                urlType: 'absolute',
                uploadJson: '/WebAdmin/ajax/upload_json.ashx?width=600&height=520'   //指定上传文件的服务器端程序
                //fileManagerJson: 'Ajax/file_manager_json.ashx',     //指定浏览远程图片的服务器端程序
                //allowFileManager: false
            });
            editor_en = K.create('#content_en', {
                cssPath: '/js/kindeditor/plugins/code/prettify.css',
                filterMode: false,
                urlType: 'absolute',
                uploadJson: '/WebAdmin/ajax/upload_json.ashx?width=600&height=520'   //指定上传文件的服务器端程序
                //fileManagerJson: 'Ajax/file_manager_json.ashx',     //指定浏览远程图片的服务器端程序
                //allowFileManager: false
            });
            prettyPrint();
        });
    </script>
    <!--kindEditor配置End-->
</head>
<body>
    <div class="titlebt">修改栏目</div>
    <!--显示列表-->
    <div id="all">
        <div class="k_all3">
            <form id="form1" action="" method="post" onsubmit="return checkdata();">
            <table width="100%" cellpadding="0" cellspacing="0" id="bk">
                <tbody>
                    <tr>
                        <td width="100" height="35" align="right">
                            <span class="red">*</span>栏目名称：
                        </td>
                        <td width="990">
                            <input type="hidden" name="pid" value="<%=info.PId %>" />
                            <input type="text" id="name" name="name" value="<%=info.Name %>" style="width:350px" data-val="true" data-val-required="*请填写栏目名称！"/>
                            <span class="field-validation-valid" data-valmsg-for="name" data-valmsg-replace="true"></span>
                        </td>
                    </tr>
                    <tr>
                        <td width="100" height="35" align="right">
                            栏目英文名称：
                        </td>
                        <td width="990">
                            <input type="text" id="name_en" name="name_en" value="<%=info.Name_En %>" style="width:350px"/>
                        </td>
                    </tr>
                    <tr>
                        <td width="100" height="35" align="right">
                            栏目排序：
                        </td>
                        <td width="990">
                            <input type="text" id="sort" name="sort" value="<%=info.Sort %>" style="width:350px"/>
                        </td>
                    </tr>
                    <tr class="notSourceUrl">
                        <td width="100" height="35" align="right">
                            <span class="red">*</span>栏目内容：
                        </td>
                        <td width="990">
                            图片宽度请限制在810px
                            <span id="field-content" class="field-validation-error" style="display:none">*请填写新闻内容！</span>
                            <textarea id="content" name="content" style="width: 90%; height: 350px;"><%=HttpUtility.HtmlDecode(info.Content)%></textarea>
                        </td>
                    </tr>
                    <tr class="notSourceUrl">
                        <td width="100" height="35" align="right">
                            栏目英文内容：
                        </td>
                        <td width="990">
                            图片宽度请限制在810px
                            <textarea id="content_en" name="content_en" style="width: 90%; height: 350px;"><%=HttpUtility.HtmlDecode(info.Content_En)%></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" height="35">
                            <div class="pl200">
                                <input type="submit" class="butt_tle" style="width: 50px" value="确定" />
                                <input type="button" class="butt_tle" style="width: 80px" value="返回列表" onclick='location.href="LanMuList.aspx?pid=<%=info.PId %>"'/>
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
            </form>
        </div>
    </div>
    <script type="text/javascript">
        function checkdata() {
            //if (editor.text() == "") {
            //    $("#field-content").show();
            //    return false;
            //}
            return true;
        }
    </script>
</body>
</html>